package com.library.librarybackend.domain.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Builder;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author 平
 * @description 附件上传DTO
 * @since 2025-09-21 15:44
 */
@Data
@Builder
public class AttachmentUploadDTO {

    @NotBlank
    private String ownerType;

    @NotNull
    private Long ownerId;

    @NotNull
    private String path;

    @NotNull
    private MultipartFile file;

    private Boolean isPrivate = true;

}
